interface AppointmentAPIResData {
  code: number
  data: null
  msg: string
  time: string
}

interface AppointmentAPIData {
  user_name: string
  age: string
  sex: string
  mobile: string
  visit_time: string
  visit_project_ids: string
  remark?: string
}

export function appointmentAPI(data: AppointmentAPIData, token: string) {
  return httpInstance.post<AppointmentAPIResData, AppointmentAPIData>(
    '/api/reserve_order/add',
    data,
    { headers: { token } },
  )
}
